﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 * 
 * Licensed under the terms of the GNU Lesser General Public License:
 *    http://www.opensource.org/licenses/lgpl-license.php
 * 
 * For further information visit:
 *    http://www.fckeditor.net/
 * 
 * File Name: fck_acronym.html
 *  Plugin to insert acronym-title TAGs which let a text-info pop up while mousecursor moves over this text.
 * 
 * File Authors:
 *  SNOOPY-0815  
 *   [based upon plugin infopup by Thomas Goerldt]
-->
<!----
/*********************************************************************************************************/
/**
 * 插入显示文字（鼠标划过提示文字显示）插件 for Fckeditor (Support: Lajox ; Email: lajox@19www.com)
 */
/*********************************************************************************************************/
---->

<html>
  <head>
    <title>Acronym</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta content="noindex, nofollow" name="robots">
    <script language="javascript">

var oEditor    = window.parent.InnerDialogLoaded() ;
var FCKLang    = oEditor.FCKLang ;
var FCKAcronym = oEditor.FCKAcronym ;
var oLink;

window.onload = function ()
{
  // First of all, translate the dialog box texts
  oEditor.FCKLanguageManager.TranslatePage( document ) ;
  
  // Show the "Ok" button.
  window.parent.SetOkButton( true ) ;

  oLink = oEditor.FCK.Selection.MoveToAncestorNode( 'ACRONYM' ) ;
  if ( oLink ){
    oEditor.FCK.Selection.SelectNode( oLink ) ;
    document.getElementById("infotext").value=oEditor.FCK.Selection.MoveToAncestorNode( 'ACRONYM' ).title;
  }
  infotext.focus();
}

function Ok()
{
	if(document.getElementById("infotext").value=='')
	  oEditor.FCK.ExecuteNamedCommand('RemoveFormat','');               //lösche acronym, wenn kein Text angegeben
	else
	  if (oLink)                                                        //wenn schon acronym existiert
  	  oLink.title=document.getElementById("infotext").value;
	  else                                                              //sonst neues hinzufuegen
	    FCKAcronym.Insert(document.getElementById("infotext").value);
  return true ;
}

    </script>
  </head>
  <body scroll="no" style="OVERFLOW: hidden">
  <style type="text/css">
  <!--
    acronym, abbr {
    border-bottom: 1px dotted rgb(102, 102, 102);
    cursor: help;
    }
  -->
  </style>  
  
    <table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
      <tr>
        <td>
          <table cellSpacing="0" cellPadding="0" align="center" border="0">
            <tr>
              <td><span style="font-family:Verdana, Arial, sans-serif;font-size:9px; color:#444;"></span>
                <span fckLang="AcronymDlgName">Info-Text</span><br>&nbsp;&nbsp;&nbsp;<span fckLang="AcronymDlgTxt">Info-Text2</span><br><br>
                <textarea style="width:300px;height:70px;" name="infotext" id="infotext"></textarea>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </body>
</html>